package dancetwotiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceActivitiesDrawPrizeConditions 抽奖活动条件
type DanceActivitiesDrawPrizeConditions struct {
	Id                     int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	ActivitiesId           int64          `json:"activitiesId" gorm:"column:activities_id;type:bigint;default:0;not null;comment:活动id"`                           // 开始时间
	BolusNum               int64          `json:"bolusNum" gorm:"column:bolus_num;type:bigint;default:0;not null;comment:药丸数量"`                                 // 药丸数量
	PrizeType              int64          `json:"prizeType" gorm:"column:prize_type;type:bigint;default:0;not null;comment:奖池类型"`                               // 奖池类型
	Quality                int64          `json:"quality" gorm:"column:quality;type:bigint;default:0;not null;comment:品质"`                                        // 品质
	IsGiveCP               int64          `json:"isGiveCP" gorm:"column:is_give_cp;type:bigint;default:0;not null;comment:是否赠送CP"`                              //是否赠送CP
	FloorsNum              int64          `json:"floorsNum" gorm:"column:floors_num;type:bigint;default:0;not null;comment:保底次数"`                               //保底次数
	FloorsElementPackageId int64          `json:"floorsElementPackageId" gorm:"column:floors_element_package_id;type:bigint;default:0;not null;comment:保底散件包"` //保底散件包
	FloorsIsGiveCP         int64          `json:"floorsIsGiveCP" gorm:"column:floors_is_give_cp;type:bigint;default:0;not null;comment:保底是否赠送CP"`             //保底是否赠送CP
	FloorsEffectTime       int64          `json:"floorsEffectTime" gorm:"column:floors_effect_time;type:bigint;default:0;not null;comment:保底时效"`                // 保底时效 ：小时
	CreatedId              int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"`                              // 创建人id
	CreatedAt              time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt              time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt              gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
